{include file="common/head"/}
<div class="main"> 
    <div class="layui-card-header"><i class="layui-icon">&#xe60b;</i>订单信息</div>
    <div class="layui-card-body payinfo">
        <div class="orderid">
            <span class="name">订单号：</span>
            <span class="ordernum">{$order.orderid}</span>
        </div>
         <div class="orderid"><span class="red">提示：请确认该订单是否已收到相应的款项。</span>
        </div>
        <div class="orderid">
            <span class="name">支付金：</span> 
            <span class="ordernum">{$order.money}</span><span class="name">元</span>
        </div>
        <div class="orderid">
            <span class="name">产品名：</span> 
            <span class="name">{$order.cionname}({$order.price}*{$order.number}份)</span>
        </div> 
        <div class="paybot" style="padding-top:50px;"> 
            <button type="submit" class="layui-btn layui-btn-fluid" lay-filter="paysub" lay-submit>已收到，点击确认订单</button>
        </div>
    </div> 
</div> 
<script> 
layui.use(['layer','jquery','form'], function(){
    var $ = layui.jquery,form = layui.form, layer = layui.layer;   
    // 提交监听
    form.on('submit(paysub)', function (data) {
        var loading = layer.load(1, {shade: [0.1, '#fff']});  
        $.post("{:url('index')}",{orderid:"{$order.orderid}",userid:"{$order.userid}",sign:"{$order.sign}"},function(res){
            layer.close(loading);
            if(res.code===1){
                layer.msg(res.msg,{time:2000,icon:1},function(){  
                    location.href = res.vurl;  
                });
            }else{
                layer.msg(res.msg,{time:1000,icon:0},function(){  
                    location.href = res.vurl;  
                }); 
            }
        });
        return false;
    });
});  
</script> 
</body>
</html>